import request from "../http/http"


export const loginApi = (category) => {
    return request.post('/auth/oauth/token', null, {
        params: {
            username: category.username,
            password: category.password,
            randomStr: '1710653115',
            code: '00',
            grant_type: 'password',
            scope:'server'
        }
    });
};

export const loginInfo = (key) => {
    return request.get('/admin/user/info', {
        headers:{
            Token: key
        }
    });
};
